# Usage
```shell
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/doom2.wad -file ~/games/doom/maps/doom2/ ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/doom2/ -skill 3 -warp 01
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/doom2.wad -file ~/games/doom/maps/doom2/vanilla/resurgence/resurge.wad ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/beautiful_doom/beautiful_doom_710.pk3 -savedir ~/games/doom/savegames/doom2/ -skill 3 -warp 01
$ cd ~/src/gzdoom/build/ && ./gzdoom -config ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/doom2.wad -file ~/games/doom/maps/doom2/ ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/doom2/ -skill 3 -warp 01
> D:\Games\gzdoom\gzdoom.exe -width 1920 -height 1080 -fullscreen -iwad D:\Games\doom\maps\original\doom2.wad -file D:\Games\doom\maps\doom2\ D:\Games\doom\mods\vanilla\sound\pk_doom_sfx\pk_doom_sfx_20120224.wad D:\Games\doom\mods\vanilla\palette\jovian_palette\JoyPal.wad D:\Games\doom\mods\zdoom\enhancements\vanilla_essence\vanilla_essence_4_3.pk3 -savedir D:\Games\doom\savegames\doom2\ -skill 3 -warp 01
Heretic
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom_heretic.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/heretic.wad -file ~/games/doom/maps/heretic/zdoom/sold_soul/soldsoul.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 -save ~/games/doom/savegames/heretic/ -skill 3 -warp 1 1
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom_heretic.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/heretic.wad -file ~/games/doom/maps/heretic/zdoom/sold_soul/soldsoul.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 ~/games/doom/mods/zdoom/brutal/brutal_heretic/Heretic-Shadow_Collection_v6.1/1_BRUTAL_HERETIC/BrutalHereticRPG_V6.1.pk3 -save ~/games/doom/savegames/heretic/ -skill 3 -warp 1 1
$ cd ~/src/gzdoom/build/ && ./gzdoom -config ~/games/doom/config/zdoom/config_zdoom_heretic.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/heretic.wad -file ~/games/doom/maps/heretic/zdoom/sold_soul/soldsoul.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 -save ~/games/doom/savegames/heretic/ -skill 3 -warp 1 1
$ cd ~/src/gzdoom/build/ && ./gzdoom -config ~/games/doom/config/zdoom/config_zdoom_heretic.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/heretic.wad -file ~/games/doom/maps/heretic/zdoom/sold_soul/soldsoul.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 ~/games/doom/mods/zdoom/brutal/brutal_heretic/Heretic-Shadow_Collection_v6.1/1_BRUTAL_HERETIC/BrutalHereticRPG_V6.1.pk3 -save ~/games/doom/savegames/heretic/ -skill 3 -warp 1 1
Hexen
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom_hexen.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/hexen.wad -file ~/games/doom/maps/hexen/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 -save ~/games/doom/savegames/hexen/ -skill 3 -warp 1 1 +playerclass Fighter, Cleric, Mage, Random
$ gzdoom -config ~/games/doom/config/zdoom/config_zdoom_hexen.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/hexen.wad -file ~/games/doom/maps/hexen/vanilla/abbey/abbey.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 ~/games/doom/mods/zdoom/brutal/brutal_hexen/Hexen/1_BRUTAL_HEXEN/BrutalHexenRPG_V4.7.pk3 -save ~/games/doom/savegames/hexen/ -skill 3 -warp 1 1 +playerclass Fighter, Cleric, Mage, Random
$ cd ~/src/gzdoom/build/ && ./gzdoom -config ~/games/doom/config/zdoom/config_zdoom_hexen.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/hexen.wad -file ~/games/doom/maps/hexen/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad /home/lea/games/doom/mods/zdoom/enhancements/live_reverb/LiveReverb.pk3 /home/lea/games/doom/mods/zdoom/gameplay/immerse/immerse_v104.pk3 -save ~/games/doom/savegames/hexen/ -skill 3 -warp 1 1 +playerclass Fighter, Cleric, Mage, Random
```

# openbsd
```shell
$ cd /usr/local/share/games/doom/ && gzdoom -config ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/doom2.wad -file ~/games/doom/maps/doom2/ ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/doom2/ -skill 3 -warp 01
```

# Random map from dir:
```shell
$ export iwad=doom2 && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp 01 && echo ${pwadfile}
$ export iwad=doom && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp 1 1 && echo ${pwadfile}
$ export iwad=doom2 && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(shuf -i 1-30 -n 1) && echo ${pwadfile}
$ export iwad=doom && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(shuf -i 1-4 -n 1) $(shuf -i 1-8 -n 1) && echo ${pwadfile}
$ export iwad=heretic && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp 01 && echo ${pwadfile}
$ export iwad=hexen && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp 1 1 && echo ${pwadfile}
```

# Random map and obtain map number with gzdoom
```shell
$ export iwad=doom2 && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(gzdoom -iwad ~/games/doom/maps/original/${iwad}.wad -file $pwadfile -norun -hashfiles > /dev/null || true && cat fileinfo.txt | grep $pwadfile | grep -e " MAP" -e " maps/" | awk '{print $4}' | shuf -n 1 | sed -e "s/^MAP//" -e 's/,//g' -e "s/^maps\/map//" -e 's/.wad,//g') && rm fileinfo.txt && echo ${pwadfile}
$ export iwad=doom && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom ~/games/doom/config/zdoom/config_zdoom.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/original/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(gzdoom -iwad ~/games/doom/maps/original/${iwad}.wad -file $pwadfile -norun -hashfiles > /dev/null || true && cat fileinfo.txt | grep $pwadfile | grep -E " E[1-5]M" | awk '{print $4}' | shuf -n 1 | sed -r 's/[EM]+/ /g' | sed -e "s/^0//" -e 's/,//g') && rm fileinfo.txt && echo ${pwadfile}
$ export iwad=heretic && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom -config ~/games/doom/config/zdoom/config_zdoom_heretic.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(gzdoom -iwad ~/games/doom/maps/iwads/${iwad}.wad -file $pwadfile -norun -hashfiles > /dev/null || true && cat fileinfo.txt | grep $pwadfile | grep -E " E[1-5]M" | awk '{print $4}' | shuf -n 1 | sed -r 's/[EM]+/ /g' | sed -e "s/^0//" -e 's/,//g') && rm fileinfo.txt && echo ${pwadfile}
$ export iwad=hexen && export pwadfile=$(find ~/games/doom/maps/${iwad}/*/*/{*.wad,*.pk3} ! -name *tex*.* ! -name *res*.* ! -name *fix.* ! -name *demo*.* -type f | shuf -n 1) && gzdoom -config ~/games/doom/config/zdoom/config_zdoom_hexen.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/${iwad}.wad -file ${pwadfile} ~/games/doom/mods/vanilla/sound/pk_doom_sfx/pk_doom_sfx_20120224.wad ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad -save ~/games/doom/savegames/${iwad}/ -skill 3 -warp $(gzdoom -iwad ~/games/doom/maps/iwads/${iwad}.wad -file $pwadfile -norun -hashfiles > /dev/null || true && cat fileinfo.txt | grep $pwadfile | grep -e " MAP" -e " maps/" | awk '{print $4}' | shuf -n 1 | sed -e "s/^MAP//" -e 's/,//g' -e "s/^maps\/map//" -e 's/.wad,//g') && rm fileinfo.txt && echo ${pwadfile}
```

# Mods
```shell
$ find ~/games/doom/mods/*/*/{*.wad,*.pk3}
```

```shell
$ gzdoom -config ~/games/doom/config/zdoom/config_chex.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/chex.wad -file ~/games/doom/maps/chex/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/chex/
$ gzdoom -config ~/games/doom/config/zdoom/config_chex.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/chex2.wad -file ~/games/doom/maps/chex2/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/chex2/
$ gzdoom -config ~/games/doom/config/zdoom/config_chex.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/chex3.wad -file ~/games/doom/maps/chex3/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/chex3/
$ gzdoom -config ~/games/doom/config/zdoom/config_square.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/square1.pk3 -file ~/games/doom/maps/square/ ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/square/
$ gzdoom -config ~/games/doom/config/zdoom/config_jazz.ini -width 1920 -height 1080 -fullscreen -iwad ~/games/doom/maps/iwads/doom2.wad -file ~/games/doom/mods/zdoom/ultimate_jazz_jackrabbit/ultimatejjdep3.pk3 ~/games/doom/mods/vanilla/palette/jovian_palette/JovPal.wad ~/games/doom/mods/zdoom/enhancements/vanilla_essence/vanilla_essence_4_3.pk3 -savedir ~/games/doom/savegames/jazz/
```

# Console screenshot parameters:
```shell
-nomonsters +r_drawplayersprites 0 +screenblocks 12 +crosshair 0 +show_messages 0 +screenshot_dir D:\Games\doom\maps\doom2\
-nomonsters +r_drawplayersprites 0 +screenblocks 12 +crosshair 0 +show_messages 0 -shotdir D:\Games\doom\maps\doom2\
> D:\Games\gzdoom\gzdoom.exe -width 1920 -height 1080 -fullscreen -iwad D:\Games\doom\maps\original\doom2.wad -file D:\Games\doom\maps\doom2\vanilla\3_heures_d_agonie\3ha2.wad D:\Games\doom\mods\vanilla\sound\pk_doom_sfx\pk_doom_sfx_20120224.wad D:\Games\doom\mods\vanilla\palette\jovian_palette\JoyPal.wad -savedir D:\Games\doom\savegames\doom2\ -shotdir D:\Games\doom\maps\doom2\vanilla\3_heures_d_agonie\ -skill 3 -warp 01 -nomonsters +r_drawplayersprites 0 +screenblocks 12 +crosshair 0 +show_messages 0 +bind x screenshot
```
